
class OsnQuery {
    func getOsnIdType(_ osnId:String)->OsnIdType{
        if(osnId.hasPrefix("OSNU")){
            return OsnIdType.user
        }else if(osnId.hasPrefix("OSNG")){
            return OsnIdType.group
        }else if(osnId.hasPrefix("OSNS")){
            return OsnIdType.dapp
        }
        return OsnIdType.user
    }
}
let gosnQuery = OsnQuery()
